package com.ysy.tz.mfg.entity;

import com.ysy.tz.core.engine.Modelable;

public class ItemEntity extends BaseEntity implements Modelable {
    private Integer itemId;
    private String itemCode;
    private String itemName;
    private String itemSpec;
    private String correspond;

    public String getModelStringValue() {
        return this.itemName;
    }

    public ItemEntity() {
    }

    public Integer getItemId() {
        return this.itemId;
    }

    public String getItemCode() {
        return this.itemCode;
    }

    public String getItemName() {
        return this.itemName;
    }

    public String getItemSpec() {
        return this.itemSpec;
    }

    public String getCorrespond() {
        return this.correspond;
    }

    public void setItemId(Integer itemId) {
        this.itemId = itemId;
    }

    public void setItemCode(String itemCode) {
        this.itemCode = itemCode;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public void setItemSpec(String itemSpec) {
        this.itemSpec = itemSpec;
    }

    public void setCorrespond(String correspond) {
        this.correspond = correspond;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof ItemEntity)) {
            return false;
        } else {
            ItemEntity other = (ItemEntity)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label71: {
                    Object this$itemId = this.getItemId();
                    Object other$itemId = other.getItemId();
                    if (this$itemId == null) {
                        if (other$itemId == null) {
                            break label71;
                        }
                    } else if (this$itemId.equals(other$itemId)) {
                        break label71;
                    }

                    return false;
                }

                Object this$itemCode = this.getItemCode();
                Object other$itemCode = other.getItemCode();
                if (this$itemCode == null) {
                    if (other$itemCode != null) {
                        return false;
                    }
                } else if (!this$itemCode.equals(other$itemCode)) {
                    return false;
                }

                label57: {
                    Object this$itemName = this.getItemName();
                    Object other$itemName = other.getItemName();
                    if (this$itemName == null) {
                        if (other$itemName == null) {
                            break label57;
                        }
                    } else if (this$itemName.equals(other$itemName)) {
                        break label57;
                    }

                    return false;
                }

                Object this$itemSpec = this.getItemSpec();
                Object other$itemSpec = other.getItemSpec();
                if (this$itemSpec == null) {
                    if (other$itemSpec != null) {
                        return false;
                    }
                } else if (!this$itemSpec.equals(other$itemSpec)) {
                    return false;
                }

                Object this$correspond = this.getCorrespond();
                Object other$correspond = other.getCorrespond();
                if (this$correspond == null) {
                    if (other$correspond == null) {
                        return true;
                    }
                } else if (this$correspond.equals(other$correspond)) {
                    return true;
                }

                return false;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof ItemEntity;
    }

    public int hashCode() {
        int result = 1;
        Object $itemId = this.getItemId();
        result = result * 59 + ($itemId == null ? 43 : $itemId.hashCode());
        Object $itemCode = this.getItemCode();
        result = result * 59 + ($itemCode == null ? 43 : $itemCode.hashCode());
        Object $itemName = this.getItemName();
        result = result * 59 + ($itemName == null ? 43 : $itemName.hashCode());
        Object $itemSpec = this.getItemSpec();
        result = result * 59 + ($itemSpec == null ? 43 : $itemSpec.hashCode());
        Object $correspond = this.getCorrespond();
        result = result * 59 + ($correspond == null ? 43 : $correspond.hashCode());
        return result;
    }

    public String toString() {
        return "ItemEntity(itemId=" + this.getItemId() + ", itemCode=" + this.getItemCode() + ", itemName=" + this.getItemName() + ", itemSpec=" + this.getItemSpec() + ", correspond=" + this.getCorrespond() + ")";
    }
}
